package com.vueblog.dao;

import com.vueblog.po.Type;
import com.vueblog.vo.DetailType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import javax.xml.soap.Detail;
import java.util.List;

@Mapper
public interface TypeDao {
    List<Type> findAll();

    int saveType(Type type);

    Type findByName(String name);

    int deleteType(int id);

    int updateType(Type type);

    List<DetailType> findDetailTypes();
}
